package com.app.Activity;

import com.app.Controller.NetworkController;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import app.com.ModuleRole.R;

public class HelloForm1 extends Activity{

	Button btnFrm1;
	public static Runnable showFrm2;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.form1);
		btnFrm1=(Button)findViewById(R.id.btnHellofrm1);
		btnFrm1.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				NetworkController.ShowForm2();
			}
		});
		
		
		showFrm2 = new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				ShowFrm2();
			}
		};
		
	}
	
	public void ShowFrm2(){
		Intent i=new Intent(getBaseContext(), HelloForm2.class);
		startActivity(i);
	}
}
